<table class="table table-responsive" id="statistics-table">
    <thead>
        <th>ID</th>
        <th>创建日期</th>
        <th>类型</th>
        <th>增加用户数</th>
        <th>用户总数</th>
        {{--<th>商品总数</th>--}}
        <th>复购人数</th>
        <th>30天复购率</th>
        <th>新增订单数</th>
        <th>新增支付订单数</th>
        <th>订单金额</th>
        <th>订单支付金额</th>
        <th>退款订单数</th>
        <th>退款订单金额</th>
        <th>退款率</th>
        <th colspan="2">操作</th>
    </thead>
    <tbody>
    @foreach($statistics as $v)
        <tr>
            <td>{!! $v->id !!}</td>
            <td>{!! $v->date !!}</td>
            <td>
                @if ($v->type == 1)
                    天统计
                @elseif ($v->type == 2)
                    周统计
                @elseif ($v->type == 3)
                    月统计
                @elseif ($v->type == 4)
                    季统计
                @elseif ($v->type == 5)
                    年统计
                @elseif ($v->type == 6)
                    全统计
                @endif
            </td>
            <td>{!! $v->add_users_count !!}</td>
            <td>{!! $v->users_count !!}</td>
            {{--<td>{!! $v->goods_count !!}</td>--}}
            <td>{!! $v->repurchase_count !!}</td>
            <td>{!! $v->repurchase_rate !!}</td>
            <td>{!! $v->orders_add_count !!}</td>
            <td>{!! $v->orders_add_pay_count !!}</td>
            <td>{!! $v->orders_price_amount !!}</td>
            <td>{!! $v->orders_pay_money_amount !!}</td>
            <td>{!! $v->orders_return_count !!}</td>
            <td>{!! $v->orders_return_amount !!}</td>
            <td>{!! $v->orders_return_rate !!}</td>
            <td>
                {{--{!! Form::open(['route' => ['statistics.destroy', $v->id], 'method' => 'delete']) !!}--}}
                {{--<div class='btn-group'>--}}
                    <a href="{!! route('statistics.show', [$v->id]) !!}" class='btn btn-default btn-xs'>详情</a>
                @if($v->type==1)
                    <a href="{!! route('statistics.refresh', [$v->id]) !!}" class='btn btn-default btn-xs'>更新</a>
                @endif
                    {{--{!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}--}}
                {{--</div>--}}
                {{--{!! Form::close() !!}--}}
            </td>
        </tr>
    @endforeach
    </tbody>
</table>